package designMode.templatePattern;

/**
 * @author LIBOFEI
 * @ClassName Coffee
 * @description 咖啡
 * @date 2020/6/26 14:22
 * @Version 1.0
 **/
public class Coffee {

    //咖啡流程
    public void prepareRecipe(){
        boilWater();
        brewCoffee();
        addMilk();
        pourInCup();
    }

    public void boilWater(){
        System.out.println("烧水");
    }

    public void brewCoffee(){
        System.out.println("拿咖啡");
    }


    public void addMilk(){
        System.out.println("加牛奶");
    }

    public void pourInCup(){
        System.out.println("倒进杯子");
    }

}
